package android.slc.box.core.utils


object DpStaticUtils {

    var defDpUtils: DpUtils = DpUtils()

    val Int.dp2Px
        get() = dp2Px(this)

    val Float.dp2Px
        get() = dp2Px(this)

    val Double.dp2Px
        get() = dp2Px(this)

    fun dp2Px(value: Int): Double {
        return defDpUtils.dp2Px(value)
    }

    fun dp2Px(value: Float): Double {
        return defDpUtils.dp2Px(value)
    }

    fun dp2Px(value: Double): Double {
        return defDpUtils.dp2Px(value)
    }

    val Int.px2Dp
        get() = px2Dp(this)

    val Float.px2Dp
        get() = px2Dp(this)

    val Double.px2Dp
        get() = px2Dp(this)

    fun px2Dp(value: Int): Double {
        return defDpUtils.px2Dp(value)
    }

    fun px2Dp(value: Float): Double {
        return defDpUtils.px2Dp(value)
    }

    fun px2Dp(value: Double): Double {
        return defDpUtils.px2Dp(value)
    }
}
